package com.sc.web.gwt.client.view.loginwidget;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface LoginWidgetView extends IsWidget {
    void setPresenter(Presenter presenter);

    void clearFields();

    void popErrorPanel(String msg);

    public interface Presenter {
        void goTo(Place place);

        void clearFields();

        void login(String userName, String password);

        void redirectToRegisterWidget();
    }
}